import React from 'react'
// ===================================================================== Temp
import TableModal from '#cpt/temp/TableModal'
// ===================================================================== global declare
const { $fn } = window
// ===================================================================== 


// ===================================================================== component
class Index extends React.Component{
	state = {
		data:[],
		pag: {},
	}
	
	model = {}
	
	open = ({spec_code},status) => {
		this.modal.open()
		this.query = { spec_code, double_status: status }
		// 阻止重复加载数据
		this.fetch()
	}
	
	// paging
	fetch = () => $fn.fetch.call(this, 'specimen-kind-record/getParentName')
	
	// 表单
	cols = [
		{ title: '项目代码',			dataIndex: 'kind_code',		width:100 },
		{ title: '项目名称',			dataIndex: 'kind_name',		width:150 },
	]
	
	render(){
		return TableModal.call(this,{ title: '自然项目', labelWidth:'s7', width:'40%', height:'60%', noSubmit:true, table: {idStr: 'kind_code'} })
	}
}

export default Index